package com.cvte.vdtlibrary.bluetooth;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wuguitong on 2018/11/22.
 */
public enum EnumBluetoothKey implements Parcelable{
    KEY_PLAY_PAUSE,
    KEY_PLAY,
    KEY_PAUSE,
    KEY_STOP,
    KEY_PREV,
    KEY_NEXT;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ordinal());
    }
    public static final Creator<EnumBluetoothKey> CREATOR = new Creator<EnumBluetoothKey>() {
        @Override
        public EnumBluetoothKey createFromParcel(Parcel source) {
            return EnumBluetoothKey.values()[source.readInt()];
        }

        @Override
        public EnumBluetoothKey[] newArray(int size) {
            return new EnumBluetoothKey[size];
        }
    };
}
